package com.hxzy.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.common.dto.auth.resp.AccountResp;
import com.hxzy.shop.entity.AdminAccountInnerRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * 功能描述: 用户账户对应的角色
 *
 * @author tonneyyy
 */
 @Mapper
public interface AdminAccountInnerRoleMapper extends BaseMapper<AdminAccountInnerRole> {

    AdminAccountInnerRole findAccountInnerRoleByAccountId(@Param("accountId") Long accountId);

    List<AdminAccountInnerRole> findAccountInnerRoleByRoleId(@Param("roleId") Long roleId);

    List<AccountResp> findAccountByRoleId(@Param("roleId") Long roleId);
}
